package com.atguigu.realtime.gmallsugar.service;

import com.atguigu.realtime.gmallsugar.bean.C3;
import com.atguigu.realtime.gmallsugar.bean.Spu;
import com.atguigu.realtime.gmallsugar.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Author lzc
 * @Date 2022/4/26 14:45
 */
@Service
public class ProductServiceImpl implements ProductService {
   
   @Autowired
   ProductMapper productMapper;
   
   @Override
   public BigDecimal gmv(int date) {
      return productMapper.gmv(date);
   }
   
   @Override
   public List<Map<String, Object>> gmvByTm(int date) {
      return productMapper.gmvByTm(date);
   }
   
   @Override
   public List<C3> gmvByC3(int date) {
      return productMapper.gmvByC3(date);
   }
   
   @Override
   public List<Spu> gmvBySpu(int date) {
      return productMapper.gmvBySpu(date);
   }
   
}
